package com.ice.body.log.service.impl;
import com.ice.body.log.dao.LogAirMapper;
import com.ice.body.log.model.LogAir;
import com.ice.body.log.service.LogAirService;
import com.ice.base.dao.BaseDao;
import com.ice.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;

/**
 * Created with GuoYanBin.
 * Description:空气质量记录 serviceImpl
 * Date: 2022-11-11
 * Time: 03:33
 */
@Service
public class LogAirServiceImpl extends BaseServiceImpl<LogAir> implements LogAirService{
    @Resource 
    private LogAirMapper mapper;
    @Override
    public BaseDao<LogAir> getBaseDao() {
        return mapper;
    }

    @Override
    public LogAir selectLast() {
        return mapper.selectLast();
    }

    @Override
    public ArrayList<LogAir> selectLimit() {
        return mapper.selectLimit();
    }
}
